package com.qk.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.qk.dto.BusinessDto;
import com.qk.entity.Business;
import com.qk.vo.OverviewVo;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface BusinessMapper extends BaseMapper<Business> {


    /**
     * 列表查询
     */
    Page<Business> businessList(Page<Business> businessPage, BusinessDto businessDto);
    /**
     * 根据id查询商机，包含跟进列表
     */
    Business getBusinessById(Integer id);
    /**
     * 获取商机总览
     */
    OverviewVo getBusinessOverview();
    /**
     * 获取公海列表
     */
    Page<Business> poolList(Page<Business> businessPage, BusinessDto businessDto);
}
